<?php
include("config/connect.php");
include("public/common.php");
$id = CheckUrlParamNoDie("commend");
$id=GetRecommendIdFromCode($id);

if( $id == 0 || !preg_match('/^\d*$/',$id))
{
	echo 0;
}
else
{
	$sql = "select id from user where id=$id limit 1";
	$result = mysql_query( $sql );
	$row_num = mysql_num_rows( $result );
	echo $row_num;
}


?>